package websocketgulu.demo.Utils;

import org.springframework.beans.factory.annotation.Value;

/**
 * @Author: 苏成
 * @Date: 2021/09/27/16:43
 * @Description:
 */

public class TestPathUtils {

    static String env = "dev";

    static String devPath = "D:\\TestMusic\\";
    static String devFlag = "\\";

    static final String stgPath = "/usr/heart_sound/music/";
    static String stgFlag = "/";

    /**
     * @return 测试环境返回windows路径，正式发布返回linux路径
     */
    public static String getPath() {
        return env.equals("dev") ? devPath : stgPath;
    }

    public static String getFlag() {

        return env.equals("dev")?devFlag:stgFlag;
    }
}
